import request from '@/utils/request'

// 新增巡检
export function regularInspections(data) {
  return request({
    url: '/cqbc/regularInspections',
    method: 'POST',
    data: data
  })
}

// 获取载体列表
export function regularInspectionsList(query) {
    return request({
      url: '/cqbc/regularInspections/list',
      method: 'GET',
      params: query
    })
  }
// 巡检修改
export function regularInspectionsDeit(data) {
    return request({
      url: '/cqbc/regularInspections',
      method: 'PUT',
      data: data
    })
  }

  //巡检详情
  export function regularInspectionsInfo(id) {
    return request({
      url: '/cqbc/regularInspections/'+id,
      method: 'GET',
    })
  }

  //删除巡检
  export function regularInspectionsInfoDetele(id) {
    return request({
      url: '/cqbc/regularInspections/'+id,
      method: 'DELETE',
    })
  }
  
